package com.pzr.soccer.domain;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDate;
@Data
@Document
public class Role {

	private String name;
	private String nameZh;
	private LocalDate expiredDate;
	private boolean isExpired;
	public boolean isExpired() {
		LocalDate today=LocalDate.now();
		return !today.isBefore(this.expiredDate);
	}

}
